﻿package idv.etrex.display.object
{
	import flash.display.Shape;
	import flash.display.Graphics;
	import idv.etrex.display.FlashGraphics;
	import idv.etrex.display.GraphicsBat;
	import idv.etrex.display.XGraphics;
	
	/**
	 * 具有GraphicsBat物件和XGraphics物件的Shape。GraphicsBat裡面裝兩個物件，分別是自己的flashGraphics和自己的xgraphics。
	 * 
 	 * 
	 */
	public class Xhape extends Shape
	{
		/**
		 * 
		 */
		public var graphicsBat:GraphicsBat = new GraphicsBat();

		/**
		 * 
		 */
		 public var xgraphics:XGraphics = new XGraphics();
		 
		/**
		 * 
		 */
		public var flashGraphics:FlashGraphics;
		
		/**
		 * 
		 */
		public function Xhape() {
			flashGraphics = new FlashGraphics(this.graphics);
			graphicsBat.add(flashGraphics);
			graphicsBat.add(xgraphics);
		}
	}
}